window.gGlobal = {
    nodeActor:null,
    actorP:-433,
    onGame:false,
    gVoice:true,
    bannerId: [                                           
        "adunit-78d0531bd879a4c6",
        "adunit-79cf1883d247391b",
        "adunit-71688410d97a939b",
        "adunit-932750bc06496854",
        "adunit-7d00c3ef62e4b63b",
        "adunit-6b73ceaf0bce2395",
    ],  
    videosId:[
        "adunit-64b5eff763dad131",
        "adunit-4ef2fc5182d58536",
        "adunit-b7e7bcfad48cb1c3",
        "adunit-1ca3218c4441306c",
        "adunit-463a5c9346043e9e",//16-30秒
    ],
    saveHight:function(score){
        cc.sys.localStorage.setItem("HIGHT_SCORE",score);
    },
    getHight:function(){
        return cc.sys.localStorage.getItem("HIGHT_SCORE") || 0;
    },
    _random:function(a, b) {
        return Math.floor(Math.random() * (b - a) + a);
    },
    setShowLoginBtnStatus:function(status){
        cc.sys.localStorage.setItem("SAVE_SHOW_LOING_BTN_STATUS",status);
    },
    getShowLoginBtnStatus:function(){
        return cc.sys.localStorage.getItem("SAVE_SHOW_LOING_BTN_STATUS") || 'true';
    },
    setVoice:function(status){
        this.gVoice = status;
        cc.sys.localStorage.setItem("SAVE_VOICE_STATUS",""+status);
        // console.log("-----setVoice:",status);
    },
    getVoice:function(){
        let _status  = cc.sys.localStorage.getItem("SAVE_VOICE_STATUS");
        // console.log("-----getVoice:",_status,_status.type);
        if(_status == 'false'){
            _status = false;
        }else{
            _status = true;
        }
        this.gVoice = _status;
        return _status;
    },
};
